﻿using System;
using System.Collections.Generic;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 商户向通道进件
	/// </summary>
	[Serializable]
	public class merchant_register_dto {
		public merchant_register_dto() {
			cards = new List<card_status>();
		}

		/// <summary>
		/// 商户进件id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 商户id
		/// </summary>
		public long merchant_id { get; set; }
		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel pay_channel { get; set; }
		/// <summary>
		/// 结算类型：T0,T1
		/// </summary>
		public string settle_type { get; set; }
		/// <summary>
		/// 通道编号
		/// </summary>
		public string merchant_no { get; set; }
		/// <summary>
		/// 开户银行,字典编号
		/// </summary>
		public string bank_code { get; set; }
		/// <summary>
		/// 开户银行名称
		/// </summary>
		public string bank_name { get; set; }
		/// <summary>
		/// 支行编号
		/// </summary>
		public string branch_code { get; set; }
		/// <summary>
		/// 支行名称
		/// </summary>
		public string branch_name { get; set; }
		/// <summary>
		/// 卡号
		/// </summary>
		public string account_no { get; set; }
		/// <summary>
		/// 开户姓名/公司名称
		/// </summary>
		public string account_name { get; set; }
		/// <summary>
		/// 卡类型：0个人，1企业
		/// </summary>
		public int busi_type { get; set; }
		/// <summary>
		/// 预留手机号
		/// </summary>
		public string mobile { get; set; }
		/// <summary>
		/// 身份证
		/// </summary>
		public string id_card { get; set; }
		/// <summary>
		/// 县区
		/// </summary>
		public long region_id { get; set; }
		/// <summary>
		/// 手持银行卡正面
		/// </summary>
		public string card_handheld { get; set; }
		/// <summary>
		/// 是否进件成功
		/// </summary>
		public int is_success { get; set; }
		/// <summary>
		/// 信用卡进件状态
		/// </summary>
		/// <value>The cards.</value>
		public List<card_status> cards { get; set; }
		/// <summary>
		/// 用户唯一编号
		/// </summary>
		public string open_id { get; set; }
	}

	[Serializable]
	public class card_status {
		/// <summary>
		/// 信用卡号
		/// </summary>
		public string account_no { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		public AuthStatusEnum status { get; set; }
	}
}
